import Vue from 'vue'
import VueRouter from 'vue-router'
import mainPage from '@/views/MainPage'
import bookList from '@/views/BookList'
import checkoutList from '@/views/CheckOutList'
Vue.use(VueRouter)

const router = new VueRouter({
  routes: [{
    path: '/',
    component: mainPage,
    children: [
      { path: '/bookList', component: bookList },
      { path: '/checkoutList', component: checkoutList }

    ]
  }]
})

export default router
